/**
 * 
 */
package cn.tonyqiu.wonuly.dao;

import java.util.List;

import cn.tonyqiu.wonuly.model.Account;

/**
 * 
 * Account Data Access Object interface
 * 
 * @author <a href="mailto:tony.qiu.smart@gmail.com">Tony Qiu</a>
 *
 */
public interface AccountDao extends GenericDao<Account, Integer>{
	/**
	 * get all account which are belong to one user
	 * 
	 * @param userId
	 * @return
	 */
	public List<Account> getAccountsByUserId(int userId);
	
	/**
	 * 
	 * @param account the value of Account which are required: userId and name
	 * @return
	 */
	public Account getAccountByAccountName(Account account);
		
}
